class LocationBean {
  late double latitude = 0;
  late double longitude = 0;
  late String province = '';
  String? name;
  String? address;

  LocationBean(
      this.latitude, this.longitude, this.province, this.name, this.address);

  LocationBean.fromJson(Map<String, dynamic> json) {
    latitude = json['latitude'];
    longitude = json['longitude'];
    province = json['province'];
    name = json['name'];
    address = json['address'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['latitude'] = this.latitude;
    data['longitude'] = this.longitude;
    data['province'] = this.province;
    data['name'] = this.name;
    data['address'] = this.address;
    return data;
  }
}
